<?php
/**
 * The template for displaying product content within loops.
 *
 * Override this template by copying it to yourtheme/woocommerce/content-product.php
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */
if (!defined('ABSPATH'))
    exit; // Exit if accessed directly

global $product, $woocommerce_loop;

// Store loop count we're currently on
if (empty($woocommerce_loop['loop']))
    $woocommerce_loop['loop'] = 0;

// Store column count for displaying the grid
if (empty($woocommerce_loop['columns']))
    $woocommerce_loop['columns'] = apply_filters('loop_shop_columns', 4);

// Ensure visibility
if (!$product->is_visible())
    return;

// Increase loop count
$woocommerce_loop['loop']++;

// Extra post classes
$classes = array();
if (0 == ( $woocommerce_loop['loop'] - 1 ) % $woocommerce_loop['columns'] || 1 == $woocommerce_loop['columns'])
    $classes[] = 'first';
if (0 == $woocommerce_loop['loop'] % $woocommerce_loop['columns'])
    $classes[] = 'last';

global $product;

   $sku = $product->get_sku() ; 
   $link = get_permalink();
   ?>

<div class="mod-product col-sm-6 col-lg-2 col-6 text-center <?php if($woocommerce_loop['loop']%2==0) echo 'even'; else echo 'odd'; ?>">
    <div class="prothumb" ele="<?php the_ID() ?>">
                <a href="<?php the_permalink() ?>"> 
		
                  <img src="<?php echo get_mthumb_link($sku,'134_134'); ?>" class="img-thumbnail shop-imgs" data="<?php the_permalink() ?>"/>
				</a>
	</div>
    <h4 class="ptitle"> <a href="<?php the_permalink() ?>"><?php echo $sku ; ?><br /> <?php //woocommerce_page_title() ?></a></h4>
    <p class="pink visible-sm"><b><?php echo number_format($product->get_price(), 0, ',', '.'); ?> VNĐ</b></p>
    <div class="btn btn-cart visible-sm"><?php echo do_shortcode('[add_to_cart id="' . get_the_ID() . '"]') ?></div>
</div>
